package cn.javabb.core.bo;

import cn.javabb.core.base.BaseEntity;
import cn.javabb.core.entity.sys.UserDO;
import cn.javabb.core.entity.biz.PostHideDO;
import cn.javabb.core.entity.biz.CatalogDO;
import cn.javabb.core.entity.biz.CommentDO;
import cn.javabb.core.entity.biz.ContentDO;
import lombok.Data;

import java.util.List;

/**
 * Article 业务对象
 */
@Data
public class PostBO extends BaseEntity {

    private Integer postId;

    private String postTitle;

    private Integer postTop;

    private Integer postSupport;

    private Integer postType; // 0为普通 1位隐藏内容 2登陆可见 3回复可见

    private Integer catalogId;

    private Integer contentId;

    private Integer userId;

    private String coverImage;

    private Integer clickCount=0;

    private String titleStyle;

    /**
     * 是否开启评论
     */
    private Integer commentState;

    private Integer state;
    private boolean showHideContent=false; // 是否可以看隐藏内容
    private PostHideDO hideContent;
    private UserDO author; //作者
    private ContentDO content; //内容
    private Integer commentCount=0; // 评论条数
    private CatalogDO catalog; // 所属板块
    private List<CommentDO> commentList; //文章评论
    private CommentDO lastComment; //最后一条评论
}
